package com.rjyb.student_management_platform.service;

import com.rjyb.student_management_platform.pojo.Class;
import com.rjyb.student_management_platform.pojo.*;
import com.rjyb.student_management_platform.unit.common.Pager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public interface AnswerService {
    //查询个人老师班级
    List<Class> classid(Teacher teacher, HttpSession session, Model model);

    //查询课目
    Booksubject selBooksubject(HttpSession session);

    //上传作业
    void addJobtable(Jobtable jobtable, Teacher teacher, HttpSession session, MultipartFile file1, MultipartFile file2, MultipartFile file3, MultipartFile file4);

    public List<Map> answerlist(Pager pager,Integer jid);
    List<HashMap> selectSumHomeWork(Integer tid);
    //有改动
    public int selcountanswer(Integer jid);
    boolean updateWork(@Param("correct") Integer correct, @Param("remedy") Integer remedy, @Param("jid") Integer jid,Integer sid,String mistake);
    List<HashMap> selectimg(Integer jid,Integer sid);

    //查询学生作业
    List<HashMap> selectHomeWork(Long sid);
    String ifHomeWork1(Integer jid,Integer sid);
    HashMap ifHomeWork(Integer jid,Integer sid);
    //提交作业
    void addAnswerSheet(AnswerSheet answerSheet);
    List<HashMap> selectTeacherName(Integer jid);

    //学生拿没过的作业
    List<Map> TakeHomework(String aid,HttpSession session,Model model);

    //学生上传修改完的作业
    void UpdateAnswerSheet(HttpSession session,AnswerSheet answerSheet,MultipartFile file1,MultipartFile file2,MultipartFile file3,MultipartFile file4,Model model);


}
